package android.java.activity;

import android.app.Activity;
import android.java.utils.R;
import android.java.utils.StringUtils;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        char[] Data = new char[]{'a', 'b', 'c', '-', 'd'};
		int width = StringUtils.getStringWidth(Data, 0, 3);
		Log.d("david", "width = " + width);
    }
}
